]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dialog: Do not ellipsize and wrap the list title
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 3 Oct 2025 02:52:03 +0000 (04:52 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 8 Oct 2025 21:02:53 +0000 (21:02 +0000)
The dialog list title section may contain a long string, so we should
not cut it.

This is currently happening in 49 (at least using the Italian locale).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3898>

js/ui/dialog.js

index 281319c3b4145903d1e7a4cce2303babb6ff6d36..c9ad1755d4afd51a6a24db953d313efed7120ee3 100644 (file)
@@ -263,6 +263,8 @@ export const ListSection = GObject.registerClass({
 }, class ListSection extends St.BoxLayout {
     _init(params) {
         this._title = new St.Label({style_class: 'dialog-list-title'});
+        this._title.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+        this._title.clutter_text.line_wrap = true;
 
         this.list = new St.BoxLayout({
             style_class: 'dialog-list-box',